from rest_framework import serializers
from .models import Cate

class CateModelSerializers(serializers.Serializer):
    class Meta:
        model=Cate
        fields='__all__'


class CateSerializers(serializers.Serializer):
    cate_name=serializers.CharField(max_length=30)
    cate_img=serializers.ImageField()

